package com.dy.nygl.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.dy.nygl.pojo.DeviceLog;

public interface DeviceLogService {
	public void addDeviceLog(DeviceLog dl) throws Exception;
	public DeviceLog getDeviceLogByMaxAndId(int id) throws Exception;
	public void updateDeviceLog(DeviceLog dl) throws Exception;
	
	public List<Integer> getDeviceIdByGroup(Date begin, Date end) throws Exception;
	public List<DeviceLog> getDeviceLogError(Date begin, Date end) throws Exception;
	
	public int getDeviceLogErrorCount() throws Exception;
	public List<DeviceLog> getDeviceLogErrorByPages(int begin, int rowsPage) throws Exception;
	
	public List<Integer> getDeviceIdOnGroup() throws Exception;
	public List<Map<String, Object>> getDeviceLogOnEffectByPages(int begin, int end) throws Exception;
	
	public Map<String, Object> getDeviceLogOnEffectByDeviceNum(String deviceNum) throws Exception;
	
	public List<Map<String, Object>> getDeviceLogOnHighEffectList() throws Exception;
	public List<Map<String, Object>> getDeviceLogOnLowEffectList() throws Exception;
	public List<Map<String, Object>> getDeviceLogOnHighEffect(int begin, int end) throws Exception;
	public List<Map<String, Object>> getDeviceLogOnLowEffect(int begin, int end) throws Exception;
}
